package com.zhangshuo.patternDesign.state;

/**
 * Created by shuo.zhang on 2017-11-03.
 */
public class SickState implements  IState {
    @Override
    public void run(Person person) throws InterruptedException {
        System.out.println("这是生病的状态");
        Thread.sleep(1000);
        person.setState(Person.COMMON);
    }
}
